package com.design03_behavioral.pattern17_state.example03;

/**
 * @ClassName 交通灯状态接口
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/9 3:12
 */
public interface State {

     void switchToGreen(TrafficLight trafficLight); //切换为绿灯
     void switchToYellow(TrafficLight trafficLight); //切换为黄灯
     void switchToRed(TrafficLight trafficLight); //切换为红灯

}
